<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<%@ include file="/commons/include/edit_page.inc"%>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
});
</script>
<script type="text/javascript" src="<s:url value="/script/selfResize.js"/>"></script>
<script>
function show(url){
	window.open(url);
}
function initLoad(){
	f_iframeResize();
}
window.onload = initLoad;
<%
int i=0;
%>
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="980" border="0" cellspacing="0" cellpadding="0"
	align="center">
	<tr>
		<td>
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			background="<s:url value="/images/new/gxzl_index_2.gif"/>">

			<tr>
				<td width="20" height="32">&nbsp;</td>
				<td width="20"><img
					src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
					height="12" /></td>
				<td>当前位置：<font color="#003399">业务需求交互单</font></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td background="" class="leftbg">
		<table width="98%" border="0" cellspacing="0" cellpadding="0"
			align="center" bgcolor="#FFFFFF">
			<tr>
				<td width="20%" valign="top">
				<table width="96%" border="0" cellspacing="0" cellpadding="0"
					align="center" bgcolor="#FFFFFF">
					<tr>
						<td valign="top" align="center"><s:form
							action="saveBusinessRequest.action" namespace="/security"
							method="post" enctype="multipart/form-data"
							onsubmit="return $.formValidator.pageIsValid('1')">
							<input type="hidden" name="businessRequest.id"
								value="${businessRequest.id}">

							<TABLE width="100%" border="0" height="26" cellPadding=0
								cellSpacing=1>
								<TR height=30>
									<TD align=left><s:if
										test="transactProcessStatus.preTransactor==curUser&&transactProcessStatus.currProcessConfigDetail.nodeType!=1">
										<input type="button" value="回 收"
											onclick="forms[0].action='removeProcess.action';forms[0].submit();">
										<input type="hidden" name="transactProcessStatus.id"
											value="${transactProcessStatus.id}">
									</s:if> <input type="button" value="返 回"
										onClick="window.history.back();"></TD>
								</TR>
							</table>

							<table width="100%" border="0" cellspacing="0" cellpadding="7"
								align="center" class=tablecolor2>
								<tr>
									<td background="/images/catalog_manage_bbs_3.gif"
										colspan="4"><span
										style="margin-top: 0px; margin-left: 14px"><img
										src="/images/catalog_manage_12.gif" width=13 height=13
										alt=""></span> <strong>流程信息</strong></td>
								</tr>
								<tr>
									<td width="14%" bgcolor="D6E3FA">
									<div align="right" class="STYLE2">当前状态：</div>
									</td>
									<td width="36%"><input type="text"
										name="transactProcessStatus.currProcessConfigDetail.name"
										value="${transactProcessStatus.currProcessConfigDetail.name}"
										class="input_nob" size="40" readonly> <input
										type="hidden"
										name="transactProcessStatus.currProcessConfigDetail.id"
										value="${transactProcessStatus.currProcessConfigDetail.id}">
									</td>
									<td bgcolor="D6E3FA" width="14%">
									<div align="right" class="STYLE2">当前办理人：</div>
									</td>
									<td width="36%">
										<s:iterator id="trans" value="transactors">
											<s:property value="userId.name" />&nbsp;
										</s:iterator>	
										<input type="hidden"
										name="transactProcessStatus.currTransactor"
										value="${transactProcessStatus.currTransactor}"
										class="input_nob" size="40" readonly></td>
								</tr>
								<tr>
									<td bgcolor="D6E3FA">
									<div align="right" class="STYLE2">当前流程：</div>
									</td>
									<td colspan="3"><s:property
										value="transactProcessStatus.currProcessConfig.name" /></td>
								</tr>
							</table>

                <table width="100%" border="0" cellspacing="0" cellpadding="7" align="center" class=tablecolor2>
								  <tr>
									<td background="<s:url value="/images/catalog_manage_bbs_3.gif"/>" colspan="4"><span style="margin-top:0px;margin-left:14px"><img src="<s:url value="/images/catalog_manage_12.gif"/>" width=13 height=13 alt=""></span> <strong>基本信息</strong></td>
								  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">名&nbsp;&nbsp;&nbsp;&nbsp;称：</div></td>
                    <td colspan="3">
                    	${businessRequest.name}
                    </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA" width="14%"><div align="right" class="STYLE2">发 起 人：</div></td>
                    <td width="36%">${businessRequest.startPerson}
                    </td>
                    <td bgcolor="D6E3FA" width="14%"><div align="right" class="STYLE2">发起部门：</div></td>
                    <td width="36%">${businessRequest.startDept}
                    </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">需求单号：</div></td>
                    <td>
                    	<input type="text" name="businessRequest.reqCode" value="${businessRequest.reqCode}" class="input_nob" size="40" readonly>
                    </td>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2"></div></td>
                    <td>
					  				</td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">期望完成时间：</div></td>
                    <td>
												<!--input type="text" name="startTime" size="14" class="Wdate" onFocus="new WdatePicker(this)"-->
												<s:date name="businessRequest.advanTime" format="yyyy年MM月dd日"/>
                    </td>
                    <td bgcolor="D6E3FA" width="14%"><div align="right" class="STYLE2">发起时间：</div></td>
                    <td width="36%">
												<s:date name="businessRequest.begin" format="yyyy年MM月dd日"/>
                    </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA" width="14%"><div align="right" class="STYLE2">产品经理：</div></td>
                    <td width="36%">
                    	<input type="text" name="prodPerson" value="${businessRequest.prodPerson.name}" class="input_nob" size="40" readonly>
                    </td>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">产品部门：</div></td>
                    <td>
                    	<input type="text" name="prodDept" value="${businessRequest.prodDept.name}" class="input_nob" size="40" readonly>
                    </td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA" width="14%"><div align="right" class="STYLE2">需求类别：</div></td>
                    <td width="36%">${businessRequest.type}
                    </td>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">重要性：</div></td>
                    <td>${businessRequest.importance}
					  				</td>
                  </tr>
                  <tr>
                    <td bgcolor="D6E3FA"><div align="right" class="STYLE2">内&nbsp;&nbsp;&nbsp;&nbsp;容：</div></td>
                    <td colspan="3">${businessRequest.content}
											<!--s:textarea name="businessRequest.content" theme="css_xhtml" cols="96" rows="4" readonly="readonly"/-->
					  				</td>
                  </tr>
								<tr>
									<td width="111" bgcolor="D6E3FA">
									<div align="right" class="STYLE2">附&nbsp;&nbsp;&nbsp;&nbsp;件：</div>
									</td>
									<td colspan="3">
									<table width="90%" border="0" class=tablecolor2>
										<tr>
											<td width="40%" align="center" bgcolor="D6E3FA">附件名称</td>
											<td width="18%" align="center" bgcolor="D6E3FA">附件类型</td>
											<td width="10%" align="center" bgcolor="D6E3FA">办理步骤</td>
											<td width="10%" align="center" bgcolor="D6E3FA">上传人</td>
											<td width="15%" align="center" bgcolor="D6E3FA">上传时间</td>
										</tr>
										 <s:iterator id="reqDocu" value="reqDocus">
											<input type="hidden" name="attachIDs"
												value="<s:property value="id" />" />
											<tr>
												<td><a
													href="<s:url value="/bpm/showDocu.action?reqDocu.id="/><s:property value="id" />"
													target="_blank"> <s:property value="fullName" /> </a></td>
							<td align="center"> 
								<s:if test="docType==null">
									其他附件
								</s:if>	
								<s:else>
									<s:property value="docType.name"/>
								</s:else>	
							</td>
							<td align="center"> 
									<s:property value="processDetail.name"/>
							</td>
													<td>
														<s:property value="creator"/>
													</td>
													<td>
														<s:date name="begin" format="yyyy年MM月dd日"/>
													</td>
											</tr>
										</s:iterator>
									</table>
									</div>
									</td>
								</tr>
							</table>

							<table width="100%" border="0" cellspacing="0" cellpadding="7"
								align="center" class=tablecolor2>
								<tr>
									<td
										background="<s:url value="/images/catalog_manage_bbs_3.gif"/>"
										colspan="4"><span
										style="margin-top: 0px; margin-left: 14px"><img
										src="<s:url value="/images/catalog_manage_12.gif"/>" width=13
										height=13 alt=""></span> <strong>办理过程</strong></td>
								</tr>
								
								<tr>
									<td>
						<s:iterator value="prodAdvReqs" status="st">
						<table width="100%" border="0" class=tablecolor2>
							<tr>
								<td align="left" width="100%">${tranReason}</td>
							</tr>
						</table>
						</s:iterator>
									</td>
								</tr>
						
						
								<tr>
									<table width="100%" border="0" class=tablecolor2>
										<tr>
                            <td align="center" bgcolor="D6E3FA" width="5%">序号</td>
                            <td align="center" bgcolor="D6E3FA" width="9%">办理步骤</td>
               							<td align="center" bgcolor="D6E3FA" width="32%">事项</td>
                            <td align="center" bgcolor="D6E3FA" width="8%">办理人员</td>
                            <td align="center" bgcolor="D6E3FA" width="12%">办理时间</td>
                            <td align="center" bgcolor="D6E3FA" width="*">办理意见</td>
										</tr>
										<s:iterator value="procTranRecords" status="st">
											<tr>
												<td align="center"><%=++i%></td>
												<td><s:property value="processStep.name" /></td>
													
                        <td  valign="top"  width="200px" style="word-break:break-all;word-wrap:break-word;" >
							<s:iterator value="reqProgresses" status="rp">
								【<s:date name="createTime" format="yyyy年MM月dd日"/><!--s:property value="createTime"/-->】
								<s:property value="reqProg"/>
								&nbsp;完成<s:property value="percent"/>%.
								<br/>
							</s:iterator>

							<s:iterator value="reqDelayes" status="rp">
								【<s:date name="createTime" format="yyyy年MM月dd日"/><!--s:property value="createTime"/-->】
								<s:property value="delayReason"/>
								&nbsp;延迟时长<s:property value="delayTime"/>周. 
								<br/>
							</s:iterator>
							</td>
													
												<td><s:property value="transactor.name" /></td>
												<td><s:property value="transactTime" /></td>
												<td><s:property value="transactInfo" /></td>
											</tr>
										</s:iterator>
								<s:if test="transactProcessStatus.currProcessConfigDetail.name=='结束'">
											<tr>
												<td align="center"><%=++i%></td>
												<td>结束</td>
												<td><s:property value="" /></td>
												<td><s:property value="" /></td>
												<td></td>
											</tr>
								</s:if>
									</table>

									</td>
								</tr>
							</table>
						</s:form></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</body>
</html>
<script>
<!---->
	function uploadFile(id) {
		window
				.open(
						'<s:url value="/common/uploadFile.action?attach.refEntity=PRODUCTREFERENCE&attach.refEntityID="/>'
								+ id, "uploadfile",
						"dialogWidth=420px;dialogHeight=300px");
	}
	
	function addComponent()
	{
		var uploadHTML=document.createElement("<input type='file'　name='upload'/>");
		document.getElementById("files").appendChild(uploadHTML);
		uploadHTML=document.createElement("<p/>");
		document.getElementById("files").appendChild(uploadHTML);
	}

</script>